package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.AiAssistantConfigEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @description: 智能助手配置
 * @Author: hongxiao
 * @date: 2019-05-10 10:26
 * @since v1.0
 */
@Repository
@Mapper
public interface AiAssistantConfigDao {
    Integer insert(AiAssistantConfigEntity aiAssistantConfigEntity);

    Integer update(AiAssistantConfigEntity aiAssistantConfigEntity);

    void insertBatch(List<AiAssistantConfigEntity> entityList);

    Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

    AiAssistantConfigEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    List<AiAssistantConfigEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);
}
